

import React, { Component } from 'react';
import {Consumer} from "./utils/myContext"

export default class Son extends Component {


  render() {
    return (
      <div>
        <h1>子组件</h1>
        <Consumer>
            {
                (val)=>(
                    <p>语言:{val.lang}</p>
                )
            }
        </Consumer>
      </div>
    )
  }
}
